home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: undergrad.math.uwaterloo.ca!sckettle
- From: sckettle@undergrad.math.uwaterloo.ca (Steve Kettle)
- Subject: Re: Fastest Sorting Algorithm?
- Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
- Message-ID: <DpAxtI.3w9@undergrad.math.uwaterloo.ca>
- Date: Wed, 3 Apr 1996 19:51:18 GMT
- References: <Dou55w.7MB@novice.uwaterloo.ca>
- Nntp-Posting-Host: noether.math.uwaterloo.ca
- Organization: University of Waterloo
-
- In article <Dou55w.7MB@novice.uwaterloo.ca>,
- Gerald Wang <GTWANG@HELIX.Watstar.UWaterloo.CA> wrote:
- >A classmate was recently asked during a job interview what is the fastest
- >method to sort an array of numbers. He replied "Use a quicksort." They
- >asked "And how would you make it faster still?" He couldn't come up with
- >much...end of interview.
- >
- >I know it's a vague question... Any ideas on what they were asking? Or
- >what the right answer is?
- >
- >Gerald
- >
- >-------------------------------------------------------------------------
- >Gerald Wang
- >http://www.csclub.uwaterloo.ca/~gtwang
- >
- >
-
- Well you could use a type of bucket sorting algorithm which is faster than
- quicksort when sorting integers. How to make it faster I don't know - you
- don't really make algortithms faster you make code implementations of
- algorithms faster. Mybe they meant tweaking stratigies for quicksort like how
- to choose a pivot element. Who knows.
-
- --
-